<template>
  <el-form ref="form" :model="form" label-width="120px" style="display: inline-block"  :hide-required-asterisk="true" :show-message="false">
    <el-form-item label="种类:" prop="name" style="display: inline-block">
      <el-input type="input" maxlength="20" v-model="form.serialNumber" style="width: 450px;"></el-input>
    </el-form-item>
    <el-form-item label="分类:" prop="name" style="display: inline-block">
      <el-input type="input" maxlength="20" v-model="form.serialNumber" style="width: 450px;"></el-input>
    </el-form-item>
    <el-form-item required label="标题:"  prop="categoryId" style="display: inline-block">
      <el-input type="input" maxlength="20" v-model="form.serialNumber" style="width: 450px;"></el-input>
    </el-form-item>
    <el-form-item required label="内容:"  prop="categoryId" style="display: inline-block">
      <el-input type="input" maxlength="20" v-model="form.serialNumber" style="width: 450px;"></el-input>
    </el-form-item>
    <el-form-item required label="来源:"  prop="categoryId" style="display: inline-block">
      <el-input type="input" maxlength="20" v-model="form.serialNumber" style="width: 450px;"></el-input>
    </el-form-item>
    <el-form-item required label="备注:"  prop="categoryId" style="display: inline-block">
      <el-input type="input" maxlength="20" v-model="form.serialNumber" style="width: 450px;"></el-input>
    </el-form-item>
    <el-form-item>
      <el-button size="small" round>取 消</el-button>
      <el-button  size="small" round type="primary" @click="onSubmit">保存</el-button>
    </el-form-item>
  </el-form>
</template>

<script>
  export default {
    name: 'DialogDataForm',
    props: {
      value: {
        type: Object,
        default: () => ({
        })
      },
      menus: {
        type: Array,
        default: () => []
      }
    },
    data() {
      return {
        showCommunitySelector: true,
        showBuildingInput: true,
        radio:'',
        form: {

        },
        rules: {

        }
      }
    },
    created() {
    },
    methods: {
      handleRemove(file, fileList) {
        console.log(file, fileList);
      },
      handlePictureCardPreview(file) {
        this.dialogImageUrl = file.url;
        this.dialogVisible = true;
      },
      onSubmit() {
        this.$refs.form.validate(valid => {
          if (valid) {

          } else {
            return false
          }
        })
      }
    }
  }
</script>
<style lang="scss" scoped>
</style>
